/**
 * 
 */
package com.yidu.menuProject.service;

import java.util.List;

import com.yidu.menuProject.action.vo.EhyRoleVo;
import com.yidu.menuProject.model.EhyRoleModel;



/**
 * 
 *@author xc
 *@version 1.0
 */

public interface EhyRoleService {
	
	public int insertSelective(EhyRoleVo vo);
	
	public int updateByPrimaryKeySelective(EhyRoleVo vo);
	
	/**
	 * 删除方法
	 * @param int
	 * @return 
	 */
	public int delete(String string);
	
	
	
	
	/**
	 * 条件查询
	 * @return
	 */
	public List<EhyRoleVo> findByMan(EhyRoleVo vo);
	/**
	 * 根据id查询
	 * @return
	 */
	public EhyRoleVo findById(String id);

	public int deleteByPrimaryKey(String roleId);

	
	/**
  	 * 查询所有
  	 * @param vo
  	 * @return
  	 */
  	List<EhyRoleModel> selectAll(EhyRoleVo vo);
	List<EhyRoleModel> selectRole(EhyRoleVo vo);
  	
  	
  	 /**
     * 查询所有
     * @return
     */
    public int selectCount(EhyRoleVo vo);
	
    public List<EhyRoleModel> selectManagerRole(String manId);

	}
